package com.xbzl.cly_demo.properties;

//import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//这是配置属性类 把application.yml中的 sky.jwt的属性封装到这个类中
@Component
@ConfigurationProperties(prefix = "cly.jwt")
//@Data
public class JwtProperties {
    private String SecretKey;
    private long Ttl;
    private String TokenName;

    public String getSecretKey() {
        return SecretKey;
    }

    public void setSecretKey(String secretKey) {
        SecretKey = secretKey;
    }

    public long getTtl() {
        return Ttl;
    }

    public void setTtl(long ttl) {
        Ttl = ttl;
    }

    public String getTokenName() {
        return TokenName;
    }

    public void setTokenName(String tokenName) {
        TokenName = tokenName;
    }
}